var str = rawInput("请输入您的卡密");

var cards= str.split("\n");
for (var i = 0; i < cards.length; i++) {
while (!click("兑换"));
sleep(1000);
while (!click("手动输入"));
sleep(1000);
setText(0,cards[i]);
while (!click("立即充值"));
if(text("知道了").findOne(2000)){
    click("知道了")
    sleep(1000)
    back()
    log(cards[i]+"已使用")
    }
}
//